package com.howtographql.hackernews.link;

/**
 * 功能说明：
 *
 * @author xiaoyu
 * @date 2019/2/21
 */

import lombok.Data;

/**
 *
 * @description
 * @version 1.0
 * @author Administrator
 * @date 2019/2/21 11:48
 *
 */
@Data
public class Link {

    private final String id;
    private final String url;
    private final String description;
    private final String userId;

    public Link(String url, String description, String userId) {
        this(null, url, description, userId);
    }

    public Link(String id, String url, String description, String userId) {
        this.id = id;
        this.url = url;
        this.description = description;
        this.userId = userId;
    }

    public String getId() {
        return id;
    }

}
